import { _decorator, Component, Label, Node } from 'cc';
import { UIComponent } from '../../Framework/Scripts/Managers/UIMgr';
const { ccclass, property } = _decorator;

@ccclass('UIControllers')
export class UIControllers extends UIComponent  {
    private version: Label = null;
    
    start() {
        this.version = this.ViewComponent<Label>("Version", Label);
        this.version.string = "3.8.0";
        this.AddButtonListener("Button", this, this.OnGameStart);
    }

    private OnGameStart(): void {
        console.log("OnGameStart");
    }
}
